package com.learn.chapter02;

import java.util.Arrays;
import java.util.List;

/**
 * @author: liyf
 * @create: 2025-02-06 14:42
 **/
public class DefaultStubbingServiceImpl implements DefaultStubbingService {

    @Override
    public int getIntValue() {
        System.out.println("DefaultStubbingServiceImpl.getIntValue");
        return 42;
    }

    @Override
    public boolean getBooleanValue() {
        System.out.println("DefaultStubbingServiceImpl.getBooleanValue");
        return true;
    }

    @Override
    public String getStringValue() {
        System.out.println("DefaultStubbingServiceImpl.getStringValue");
        return "Hello";
    }

    @Override
    public List<String> getListValue() {
        System.out.println("DefaultStubbingServiceImpl.getListValue");
        return Arrays.asList("Item1", "Item2");
    }

    @Override
    public String greeting(String name) {
        return "Hello " + name;
    }
}
